﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Reg.aspx.cs" Inherits="Reg" EnableEventValidation="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>注册会员</title>
    <link href="style/owon.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript">
        var Gid = document.getElementById;
        var showArea = function () {
            Gid('show').innerHTML = "<h3>省" + Gid('s_province').value + " - 市" +
            Gid('s_city').value + " - 县/区" +
            Gid('s_county').value + "</h3>"
        }
        Gid('s_county').setAttribute('onchange', 'showArea()');
        function sech(id) {//省市改变时触发
            var aa = document.getElementById(id);
            if (id == "s_county") {
                var e = aa.selectedIndex;
                document.getElementById("HiddenField3").value = aa.options[e].text;
            }
        }

        function sech2() {
            var aa1 = document.getElementById("s_province");
            var c = aa1.selectedIndex;
            document.getElementById("HiddenField1").value = aa1.options[c].text;//将选中的省的text赋值给HiddenField1的Value;
            var aa = document.getElementById("s_city");
            var d = aa.selectedIndex;
            document.getElementById("HiddenField2").value = aa.options[d].text;
        }
    </script>
    <style type="text/css">
        td {
            font-family: 'Microsoft YaHei';
            font-family: "微软雅黑";
            font-weight: normal;
        }

        #regtb {
            font-size: 14px;
            font-weight: bold;
            color: rgb(255, 255, 255);
        }

        .yanse {
            color: black;
            font-weight: normal;
            font-size: 16px;
        }

        table tr td {
            padding: 6px 0;
        }

        /*body {
            background: url(../Member/images/QrCode_bg.jpg) fixed center center no-repeat;
            background-size: cover;
            width: 100%;
        }*/
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <link href="style/style.css" rel="stylesheet" type="text/css" />
        <table style="border-bottom: 1px #e6e6e6 solid; height: 34px;"
            border="0" width="100%" cellpadding="0" cellspacing="0">
            <tbody>
                <tr>
                    <td>
                        <table id="top" align="center" border="0" width="980" cellpadding="0" cellspacing="0" style="margin-top: 20px;">
                            <tbody>
                                <tr>
                                    <td align="center" style="font-size: 26px; font-weight: bold; color: #f00;">欢迎成为龙道免费午餐会员，从此吃饭不花钱！
                                    </td>

                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
            </tbody>
        </table>
        <%--<table align="center" border="0" width="980" cellpadding="0" cellspacing="0">
            <tbody>
                <tr>
                    <td width="324">
                        <a href="Login.aspx">
                            <img src="images/logo.png" border="0" height="92" width="324" /></a>
                    </td>
                    <td>
                        <table style="height: 76px; margin-bottom: 16px;" border="0" width="100%" cellpadding="0"
                            cellspacing="0">
                            <tbody>
                                <tr>
                                    <td width="56%">
                                        <a href="" target="_blank" style="padding-top: 20px;">
                                            <img src="images/topbanner.jpg" border="0" /></a>
                                    </td>
                                    <td align="right" valign="bottom" width="44%"></td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
            </tbody>
        </table>--%>
        <table style="width: 100%;" border="0" width="100%" cellpadding="0"
            cellspacing="0">
            <tbody>
                <tr>
                    <td>
                        <table style="margin-top: 0px;" align="center" border="0" width="1000"
                            cellpadding="0" cellspacing="0">
                            <tbody>
                                <tr>
                                    <td valign="top">
                                        <!--content start-->
                                        <table style="height: 60px; background: #eee; margin-top: 15px; margin-bottom: 20px;"
                                            align="center" border="0" width="920" cellpadding="0" cellspacing="0">
                                            <tbody>
                                                <tr>
                                                    <td style="padding-left: 20px; padding-top: 30px;" valign="top" width="510">
                                                        <table border="0" width="510" cellpadding="0" cellspacing="0">
                                                            <tbody>
                                                                <tr>
                                                                    <td align="center" style="padding: 5px 15px 5px 0; font-size: 24px; color: #000;">注册会员</td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                        <table id="regtb" style="margin-top: 20px;" border="0" width="510" cellpadding="0"
                                                            cellspacing="0">
                                                            <tbody>
                                                                <tr>
                                                                    <td colspan="3" height="10"></td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="right" height="32" style="width: 90px"><span style="color: black;" class="yanse">会员账号：</span>
                                                                    </td>
                                                                    <td width="167">
                                                                        <asp:TextBox ID="txtUserId" runat="server" CssClass="input2" Width="167" onkeyup="this.value=this.value.replace(/[^\u4e00-\u9fa5\w]/g,'')" onafterpaste="this.value=this.value.replace(/[^\u4e00-\u9fa5\w]/g,'')" OnTextChanged="txtUserId_TextChanged" AutoPostBack="True" MaxLength="12"></asp:TextBox>
                                                                        <span style="color: #f99">(注意：请使用英文或数字形式，最少为五个字符)<asp:Literal ID="errorTip" runat="server"></asp:Literal></span>
                                                                    </td>
                                                                    <td>
                                                                        <%-- <span style="color: #f99">(注意：请使用英文或数字形式)<asp:Literal ID="errorTip" runat="server"></asp:Literal></span>--%>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="right" height="32" width="280"><span class="yanse">会员姓名：</span>
                                                                    </td>
                                                                    <td width="167">
                                                                        <asp:TextBox ID="txtName" runat="server" CssClass="input2" Width="167"></asp:TextBox>

                                                                    </td>

                                                                </tr>
                                                                <tr style="width: 1000px;">
                                                                    <td align="right"><span class="yanse">所在地区：</span>
                                                                    </td>
                                                                    <td align="left" style="width: 1000px;">
                                                                        <select id="s_province" name="s_province" runat="server"></select>&nbsp;
                                <select id="s_city" name="s_city"></select>&nbsp;
                                <select id="s_county" name="s_county" onchange="sech(this.id)"></select>
                                                                        <asp:HiddenField ID="HiddenField1" runat="server" />
                                                                        <asp:HiddenField ID="HiddenField2" runat="server" />
                                                                        <asp:HiddenField ID="HiddenField3" runat="server" />
                                                                        <br />
                                                                        <script src="/scripts/area.js" type="text/javascript"></script>
                                                                        <script type="text/javascript">_init_area();</script>
                                                                        <span
                                                                            style="color: #f99; text-align: left">(注意：注册后不允许修改) </span>
                                                                    </td>
                                                                </tr>
                                                                <tr style="display: none;">
                                                                    <td align="right" height="32">注册类型：
                                                                    </td>
                                                                    <td colspan="2">
                                                                        <asp:RadioButtonList ID="rblType" runat="server" CssClass="myrbl" RepeatDirection="Horizontal"
                                                                            RepeatLayout="Flow">
                                                                            <asp:ListItem Selected="True" Value="0">会员</asp:ListItem>
                                                                            <asp:ListItem Value="5">店铺</asp:ListItem>
                                                                        </asp:RadioButtonList>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="right" height="32"><span class="yanse">手机号码：</span>
                                                                    </td>
                                                                    <td width="167">
                                                                        <asp:TextBox ID="txtTel" runat="server" CssClass="input2" Width="167"></asp:TextBox><font style="font-size: 12px; color: #f99;">(手机号可登陆，也可用于密码修改。)</font>
                                                                    </td>

                                                                </tr>
                                                                <tr style="display: none;">
                                                                    <td align="right" height="32">身份证号码：
                                                                    </td>
                                                                    <td width="167">
                                                                        <asp:TextBox ID="TxtIDNumber" runat="server" CssClass="input2" Width="167px"></asp:TextBox>
                                                                    </td>
                                                                    <td>
                                                                        <font style="font-size: 12px;">*</font>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="right" height="32"><span class="yanse">登录密码：</span>
                                                                    </td>
                                                                    <td width="167">
                                                                        <asp:TextBox ID="txtPassword" runat="server" CssClass="input2" Width="167px" TextMode="Password"></asp:TextBox><%--<font style="font-size: 12px; color: #f99;">(默认一级密码111111)</font>--%>
                                                                    </td>
                                                                    <td>
                                                                        <%--<font style="font-size: 12px;">(默认一级密码111111)</font>--%>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="right" height="32"><span class="yanse">二级密码：</span>
                                                                    </td>
                                                                    <td width="167">
                                                                        <asp:TextBox ID="txtSecondaryPassword" runat="server" CssClass="input2" Width="167px" TextMode="Password"></asp:TextBox><%--<font style="font-size: 12px; color: #f99;">(默认二级密码222222)</font>--%>
                                                                    </td>
                                                                    <td>
                                                                        <%--<font style="font-size: 12px;">(默认二级密码222222)</font>--%>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="right" height="32"><span class="yanse">推荐人账号：</span>
                                                                    </td>
                                                                    <td width="167">
                                                                        <asp:TextBox ID="txtRefereeMobile" runat="server" CssClass="input2" Width="167px"></asp:TextBox><font style="font-size: 12px; color: #f99;">(如无请填写 0000)</font>
                                                                    </td>
                                                                    <td>
                                                                        <%--<font style="font-size: 12px;">* (如无请填写 0000)</font>--%>
                                                                    </td>
                                                                </tr>
                                                                <tr style="display: none">
                                                                    <td align="right" height="32">接点人账号：
                                                                    </td>
                                                                    <td width="167">
                                                                        <asp:TextBox ID="txtContactPerson" runat="server" CssClass="input2" Width="167px"></asp:TextBox>
                                                                    </td>
                                                                    <td>
                                                                        <font style="font-size: 12px;">(如无请填写 0000)</font>
                                                                    </td>
                                                                </tr>
                                                                <tr style="display: none;">
                                                                    <td align="right" height="32">微信号：
                                                                    </td>
                                                                    <td width="167">
                                                                        <asp:TextBox ID="TxtWeiXin" runat="server" CssClass="input2" Width="167px"></asp:TextBox>
                                                                    </td>
                                                                    <td></td>
                                                                </tr>
                                                                <tr style="display: none;">
                                                                    <td align="right" height="32">支付宝：
                                                                    </td>
                                                                    <td width="167">
                                                                        <asp:TextBox ID="TxtZhiFuBao" runat="server" CssClass="input2" Width="167px"></asp:TextBox>
                                                                    </td>
                                                                    <td></td>
                                                                </tr>
                                                                <tr style="display: none;">
                                                                    <td align="right" height="32">微支付：
                                                                    </td>
                                                                    <td width="167">
                                                                        <asp:TextBox ID="TxtWeiPay" runat="server" CssClass="input2" Width="167px"></asp:TextBox>
                                                                    </td>
                                                                    <td></td>
                                                                </tr>
                                                                <tr>
                                                                    <td colspan="3" height="20"></td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="right">
                                                                        <span style="color: #f99"></span><span class="yanse">详细地址：</span>
                                                                    </td>
                                                                    <td align="left">
                                                                        <asp:TextBox ID="txtAddress" runat="server" CssClass="input2" Width="167px"></asp:TextBox><%--<span
                                        style="color: #f99; text-align: left">(必填：便于寄送账单、礼品) </span>--%>
                                                                    </td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                        <table style="height: 40px;" border="0" width="410" cellpadding="0" cellspacing="0">
                                                            <tbody>
                                                                <tr>
                                                                    <td style="width: 150px"></td>
                                                                    <td>
                                                                        <asp:Button ID="btnSubmit" runat="server" Style="border-radius: 6px; line-height: 30px; text-align: center; color: #fff; padding: 2px 40px; border: 0; background-color: #2898CB; cursor: pointer;"
                                                                            Text="提交注册" OnClientClick="sech2()" OnClick="btnAdd_Click" />
                                                                    </td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                    </td>
                                                    <td align="right">
                                                        <img src="images/reg_pic2.jpg" height="366" width="384" />
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
            </tbody>
        </table>
    </form>
</body>
</html>
